 # Author:Zhichao

phrase = "Don't panic!"
plist = list(phrase)
print(phrase)
print(plist)

for i in range(4):
 plist.pop()
plist.pop(0)
plist.remove("'")
plist.extend([plist.pop(),plist.pop()])
plist.insert(2,plist.pop(3))
new_phrase = ''.join(plist)
print(plist)
print(new_phrase)
# panic.py






# -*- coding:utf-8 -*-
# Author:Zhichao

phrase = "Don't panic!"
plist = list(phrase)
print(phrase)
print(plist)

new_pharse = ''.join(plist[1:3])
new_pharse = new_pharse + ''.join([plist[5],plist[4],plist[7],plist[6]])
print(plist)
print(new_pharse)

# panic2.py
